package com.yili.oa.utils.hodle;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author lxr
 * @version v0.01
 * @date 2019/7/11 0011
 * @email 200890949@qq.com
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDB();
    }
}
